Skip to content

ci(NODE-6752): unskip flaky SCRAM auth tests #4571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 1, 2025

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Jun 30, 2025

Description

What is changing?

Unskips and fixes the flaky auth tests. The problem appears to be the use of Promise.all() instead of Promise.allSettled() when creating multiple users concurrently. Promise.all() meant that sometimes, by the time the tests started running, only some of the required test users had been created.

I ran a patch across all our variants that run these tests, each variant running the tests 1000 times: https://spruce.mongodb.com/version/6862c34402854f00079a3f3a/tasks?page=0&sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC. The only failures are on Windows replica set 4.2. I'm not sure why these failed, but I fixed those failures by creating users in a before, instead of a beforeEach.

Is there new documentation needed for these changes?

What is the motivation for this change?

Release Highlight

Fill in title or leave empty for no highlight

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@baileympearson baileympearson marked this pull request as ready for review June 30, 2025 17:31
@baileympearson baileympearson requested a review from a team as a code owner June 30, 2025 17:31
@dariakp dariakp self-assigned this Jul 1, 2025
@dariakp dariakp added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jul 1, 2025
@dariakp dariakp merged commit c48bbcf into mongodb:main Jul 1, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Primary Review In Review with primary reviewer, not yet ready for team's eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants